package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 收货地址表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_address")
public class Address implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 收货人
     */
    @TableField(value = "recipient")
    private String recipient;

    /**
     * 收货人电话
     */
    @TableField(value = "recipient_phone")
    private String recipientPhone;

    /**
     * 省
     */
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 县
     */
    @TableField(value = "county")
    private String county;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 付款人
     */
    @TableField(value = "payer")
    private String payer;

    /**
     * 付款人电话
     */
    @TableField(value = "payer_phone")
    private String payerPhone;

    /**
     * 删除标记:0为未删除,1为删除
     */
    @TableField(value = "del_flag")
    private String delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_RECIPIENT = "recipient";

    public static final String COL_RECIPIENT_PHONE = "recipient_phone";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_COUNTY = "county";

    public static final String COL_ADDRESS = "address";

    public static final String COL_PAYER = "payer";

    public static final String COL_PAYER_PHONE = "payer_phone";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}